package com.example.vertification.service;

import com.example.vertification.entity.UserStation;
import com.example.vertification.entity.UserWithPageEntity;
import com.example.vertification.repository.UserStationRepository;
import com.example.vertification.repository.UserWithPageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserStationService {


    private final UserStationRepository userStationRepository;

    @Autowired
    public UserStationService(UserStationRepository userStationRepository) {
        this.userStationRepository = userStationRepository;
    }

    public UserStation getEntityByUid(long uid) {
        return userStationRepository.findByUid(uid);
    }


    public UserStation save(UserStation e) {
        return userStationRepository.save(e);
    }


}